package com.gao.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author gaofeng
 * @date 2022年09月07日 20:02
 */
@Component
public class RabbitMqListener {

    @RabbitListener(queues = "boot_topic_queue")
    public void listenerQueue(Message message) {
        System.out.println("消费者监听..." + message);
    }
}
